import { routeData, action, controller } from "maishu-node-mvc";
import { DataSourceSelectArguments } from "maishu-services-sdk";
import { MemberDataContext, memberDataContext } from "../data-context";
import { DataHelper } from "common";

@controller("user")
export class UserController {

    @action()
    async list(@routeData { args }: { args: DataSourceSelectArguments }, @memberDataContext dc: MemberDataContext) {
        let r = await DataHelper.list(dc.user, { selectArguments: args });
        return r;
    }
}